
<?php defined('_JEXEC') or die('Restricted access'); 

	$edit		= JRequest::getVar('edit',true);
	$text = !$edit ? JText::_( 'Thêm mới' ) : JText::_( 'Sửa' );
	JToolBarHelper::title(JText::_( 'Cơ quan chủ trì' ).': <small><small>[ ' . $text.' ]</small></small>','plugin.png' );
	JToolBarHelper::save( 'save', 'Lưu' );
	JToolBarHelper::cancel( 'cancel', 'Quay lại' );
	
	$editor =& JFactory::getEditor();
?>

<script language="javascript" type="text/javascript">
	function submitbutton(pressbutton) {
		var form = document.adminForm;
		if (pressbutton == 'cancel') {
			submitform( pressbutton );
			return;
		}
		
		if (document.getElementById('name').value == 0){
			alert( "<?php echo JText::_( 'Bạn chưa nhập Số hiệu', true ); ?>" );
		} else {
			submitform( pressbutton );
		}	
	}
	
</script>
<style type="text/css">
	table.paramlist td.paramlist_key {
/*		width: 92px;
*/		text-align: left;
		height: 30px;
	}

</style>

<form action="index.php" method="post" name="adminForm" id="adminForm" >
<div>
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Chi tiết' ); ?></legend>

		<table class="admintable">
		<tr>
			<td align="right" class="key"><?php echo JText::_( 'Tên đơn vị' ); ?>:</td>
			<td width="500">
				<input class="text_area" type="text" name="name" id="name" size="90" value="<?php echo $this->item->name;?>" />			
			</td>
		</tr>
	</table>
	</fieldset>
</div>

<div class="clr"></div>
	<input type="hidden" name="option" value="com_detai" />
	<input type="hidden" name="cid[]" value="<?php echo $this->item->id; ?>" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="view" value="donvi" />
	<?php echo JHTML::_( 'form.token' ); ?>
</form>